package us.kg.kotoriforest.springmvc.controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试请求参数
 *
 * @author Kotori rotroutine@163.com
 * @since 2025/1/17
 */
@Controller
public class TestParamController {
    @RequestMapping("/testparam")
    public String testParam(HttpServletRequest request) {
        System.out.println(request.getParameter("username"));
        System.out.println(request.getParameter("password"));
        return "test_param";
    }
}
